using System;
using XmlStudio.Interfaces;
using XmlStudio.DataLayer;

namespace XmlStudio.Models.Events {
    /// <summary>
    /// Event arguments for AttributeRemoved event.
    /// </summary>
    /// <typeparam name="TNode">The type of the node.</typeparam>
    /// <typeparam name="TAttribute">The type of the attribute.</typeparam>
    public class AttributeRemovedEventArgs<TNode, TAttribute> : EventArgs
        where TNode : BigXmlNode
        where TAttribute : IBigXmlAttribute {
        /// <summary>
        /// Gets or sets the node.
        /// </summary>
        /// <value>The node.</value>
        public TNode Node { get; private set; }

        /// <summary>
        /// Gets or sets the attribute.
        /// </summary>
        /// <value>The attribute.</value>
        public TAttribute Attribute { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="AttributeRemovedEventArgs&lt;TNode, TAttribute&gt;"/> class.
        /// </summary>
        /// <param name="node">The node.</param>
        /// <param name="attribute">The attribute.</param>
        public AttributeRemovedEventArgs(TNode node, TAttribute attribute) {
            this.Node = node;
            this.Attribute = attribute;
        }
    }
}